package cn.stylefeng.guns.modular.hp.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 友情链接表
 * </p>
 *
 * @author xzqiang
 * @date 2018-12-12
 */
@TableName("hp_friendly_link_info")
public class FriendlyLinkInfo extends Model<FriendlyLinkInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.UUID)
    private String id;
    /**
     * 外链名称
     */
    private String name;
    /**
     * 外链地址
     */
    private String linkUrl;
    /**
     * 图片名称
     */
    private String picName;
    /**
     * 图片地址
     */
    private String picUrl;
    /**
     * 排序
     */
    private Integer pri;
    /**
     * 创建时间
     */
    private Date createdTime;
    /**
     * 创建人
     */
    private Integer creater;
    /**
     * 乐观锁保留字段
     */
    private Integer version;

    
    public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLinkUrl() {
		return linkUrl;
	}

	public void setLinkUrl(String linkUrl) {
		this.linkUrl = linkUrl;
	}

	public String getPicName() {
		return picName;
	}

	public void setPicName(String picName) {
		this.picName = picName;
	}

	public String getPicUrl() {
		return picUrl;
	}

	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}

	public Integer getPri() {
		return pri;
	}

	public void setPri(Integer pri) {
		this.pri = pri;
	}

	public Date getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}

	public Integer getCreater() {
		return creater;
	}

	public void setCreater(Integer creater) {
		this.creater = creater;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

    @Override
    public String toString() {
        return "FriendlyLinkInfo{" +
                "id=" + id +
                ", name=" + name +
                ", linkUrl=" + linkUrl +
                ", picName=" + picName +
                ", picUrl=" + picUrl +
                ", pri=" + pri +
                ", createdTime=" + createdTime +
                ", creater=" + creater +
                ", version=" + version == null ? "null":version +
                "}";
    }

}
